package com.vhly.ddxdecompiler.dexreader.file.mixeditem;

import com.vhly.ddxdecompiler.dexreader.io.DexInputStream;

import java.io.DataOutputStream;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: vhly
 * Date: 2009-10-15
 * Time: 12:45:54
 *
 * @author vhly[FR]
 */
public final class MapItem extends OffsettedItem {
    short value;
    int itemCount;
    int offset;


    public MapItem(int align, int len) {
        super(align, len);
    }

    /**
     * 读取数据
     *
     * @param din 输入流
     * @throws java.io.IOException 异常
     */
    public void read(DexInputStream din) throws IOException {
        value = din.readShort();
//        out.writeShort(0);
        din.readShort();
        itemCount = din.readInt();
        offset = din.readInt();
    }

    /**
     * 输出数据
     *
     * @param dout 输出流
     * @throws java.io.IOException 异常
     */
    public void write(DataOutputStream dout) throws IOException {
    }
}
